﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sheep_Breeding.Domain
{
    /// <summary>
    /// 栋舍管理表
    /// </summary>
    public class BuildingManagement
    {
        /// <summary>
        /// 序号（主键，自增）
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]   
        public int BuildingId { get; set; }

        /// <summary>
        /// 栋舍类型（外键，下拉框选择）
        /// </summary>
        public int House_typeId { get; set; }

        /// <summary>
        /// 栋舍名称
        /// </summary>
        public string House_name { get; set; }

        /// <summary>
        /// 负责人姓名
        /// </summary>
        public string Manager { get; set; }

        /// <summary>
        /// 生产相关人员
        /// </summary>
        public string Producer { get; set; }

        /// <summary>
        /// 当前状态（默认true启用）
        /// </summary>
        public bool Status { get; set; } = true;

        /// <summary>
        /// 备注
        /// </summary>
        public string Remarks { get; set; }

        /// <summary>
        /// 创建人姓名
        /// </summary>
        public string Creator { get; set; }

        /// <summary>
        /// 创建的时间
        /// </summary>
        public DateTime Create_time { get; set; }

        /// <summary>
        /// 修改人姓名
        /// </summary>
        public string Modifier { get; set; }

        /// <summary>
        /// 修改的时间
        /// </summary>
        public DateTime ?Modify_time { get; set; }

        /// <summary>
        /// 删除标记（默认false）
        /// </summary>
        public bool IsDelete { get; set; }=false;
    }
}
